class Config:
    def __init__(self, **kwargs):
        for key, value in kwargs.items():
            setattr(self, key, value)


# 数据库配置
config = Config(
    user="root",
    password="root",
    host="127.0.0.1",
    port=3306,
    charset="utf8mb4"
)